/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using QuocTeViet.DAL;
using QuocTeViet.DO;
/// <summary>
/// Summary description for cmsDonHangBL
/// </summary>
namespace QuocTeViet.BL 
{
    public class cmsDonHangBL 
    {
    	#region Private Variables
		cmsDonHangDAL objcmsDonHangDAL;
		#endregion
		
        #region Public Constructors
        public cmsDonHangBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsDonHangDAL=new cmsDonHangDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsDonHangDO objcmsDonHangDO)
        {
            return objcmsDonHangDAL.Insert(objcmsDonHangDO);
        }

        public int Update(cmsDonHangDO objcmsDonHangDO)
        {
             return objcmsDonHangDAL.Update(objcmsDonHangDO);

        }

        public int Delete(cmsDonHangDO objcmsDonHangDO)
        {
             return objcmsDonHangDAL.Delete(objcmsDonHangDO);

        }

         public int DeleteAll()
        {
             return objcmsDonHangDAL.DeleteAll();
        }

        public cmsDonHangDO Select(cmsDonHangDO objcmsDonHangDO)
        {
            return objcmsDonHangDAL.Select(objcmsDonHangDO);
        }

        public ArrayList SelectAll1(int xl)
        {
         return objcmsDonHangDAL.SelectAll1(xl);
        }
        
        public DataTable SelectAll( int xl)
        {
         return objcmsDonHangDAL.SelectAll(xl);
        }
        public DataTable GetCustomerInfo(string session)
        {
            return objcmsDonHangDAL.GetCustomerInfo(session);
        }

        public DataTable SelectUser(int id)
        {
            return objcmsDonHangDAL.SelectUser(id);
        }
        public cmsDonHangDO SelectBySessionID(string id,int xl)
        {
            return objcmsDonHangDAL.SelectBySessionID(id,xl);
        }

        #endregion

    }

}
